package com.web.kftsdk.common.bean;

import com.web.kftsdk.common.MultiSelectValidator;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.*;

/**
 * <p>Title: MultiSelect</p>
 * <p>Description: TODO</p>
 *
 * @author xukk
 * @version 1.0
 * @date 2018/6/14
 */
@Target({ ElementType.METHOD,ElementType.TYPE, ElementType.FIELD, ElementType.ANNOTATION_TYPE, ElementType.CONSTRUCTOR, ElementType.PARAMETER })
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Constraint(validatedBy = { MultiSelectValidator.class })
public @interface MultiSelect {
    String message() default "多选一";
    Class classType() default String.class;
    String[] multi() default {};
    Class<?>[] groups() default {};

    Class<? extends Payload>[] payload() default {};
}
